<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/system/sys_workflowtablechange/Sys_WorkflowtableChange.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/system/sys_workflowtablechange/Sys_WorkflowtableChange.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'xh',
                footer: "Foots",
                cnName: '待审批',
                name: 'sys_workflowtablechange/Sys_WorkflowtableChange',
                url: "/Sys_WorkflowtableChange/",
                sortName: "Changetime"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({"WorkName":"","Changetime":""});
            const searchFormOptions = ref([[{"title":"业务名称","field":"WorkName","type":"like"},{"title":"生成时间","field":"Changetime","type":"datetime"}]]);
            const columns = ref([{field:'WorkFlowTable_Id',title:'ID',type:'guid',width:110,hidden:true,require:true,align:'left'},
                       {field:'notice',title:'是否已通知',type:'int',bind:{ key:'enable',data:[]},width:110,hidden:true,align:'left'},
                       {field:'WorkTableKey',title:'WorkTableKey',type:'string',width:180,hidden:true,align:'left'},
                       {field:'WorkTable',title:'WorkTable',type:'string',width:180,hidden:true,align:'left'},
                       {field:'WorkName',title:'业务名称',type:'string',width:180,align:'left',sort:true},
                       {field:'StepId',title:'节点',type:'string',width:120,hidden:true,align:'left'},
                       {field:'StepName',title:'节点名称',type:'string',width:180,align:'left'},
                       {field:'StepType',title:'审批类型',type:'int',width:110,hidden:true,align:'left'},
                       {field:'StepValue',title:'审批人',type:'string',width:220,hidden:true,align:'left'},
                       {field:'xh',title:'序号',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'yh',title:'审批用户',type:'string',bind:{ key:'用户',data:[]},width:220,align:'left'},
                       {field:'je',title:'审批角色',type:'string',bind:{ key:'roles',data:[]},width:220,align:'left'},
                       {field:'bm',title:'审批部门',type:'string',bind:{ key:'组织机构',data:[]},width:220,align:'left'},
                       {field:'Changetime',title:'生成时间',type:'datetime',sort:true,width:150,require:true,align:'left',sort:true}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
